   <!DOCTYPE html>
<html>
<head>
<head />
<div th:include="base-libs :: base-libs" />
<title>理事会详情</title>
<style type="text/css">
.topBtn{
	float: right;
	margin-right:10px;
	margin-top:5px
}
</style>
</head>
<script th:inline="javascript">
	/**理事会信息*/
	var lshglxx = [[${lshglxx}]];
	/**机构列表信息*/
	var qyjgxx = [[${qyjgxx}]];
</script>
<script type="text/javascript">
	$(function() {
		initData(); 
	});

	function initData() {
		$("#jgxxTable").datagrid(getOption(lshglxx["YLTLX"]));
		initLshglxx();
		initJgxx();
	}

	/**加载理事会信息*/
	function initLshglxx(){
		$(".lshglxx").each(function(){
			$(this).text(lshglxx[$(this).attr("id")]);
		});
	}
	
	/**返回按钮*/
	function btnBackHandler() {
		$.QuickUrlUtils.redirectUrl("index.html");
	}
	
	/**获取option*/
	function getOption(lx){
		var opt;
		if(lx == "03"){
			opt= {
					idField : "PTJGID",
					uniqueId: "PTJGID",
					striped : true,
					border:false,
					clickToSelect: true,
					fit: true,
					fitColumns: true,
					singleSelect: false,
					rownumbers: true,
					columns : [[
						{
							field : "YLJGMC",
							width: 160,
							align: "center",
							title : "机构名称"
						},
						{
							field : "XZQHMC",
							width: 100,
							align: "center",
							title : "所属区域"
						},
						{
							field : "WSJGLBMC",
							width: 120,
							align: "center",
							title : "机构类型"
						},
						{
							field : "KSMC",
							width: 200,
							align: "center",
							title : "科室",
							formatter : function(value, row, index){
								return "<span title='"+value+"'>"+value+"</span>";
							}
						},
						{
							field : "YYDJMC",
							width: 100,
							align: "center",
							title : "医院等级"
						},
						{
							field : "JGFLGLMC",
							width: 120,
							align: "center",
							title : "经营性质"
						}
					]],onLoadSuccess: function(data){
						$("#jgxxLayout").layout("resize");
					}
				};
		}
		else{
			opt= {
					idField : "PTJGID",
					uniqueId: "PTJGID",
					striped : true,
					border:false,
					clickToSelect: true,
					fit: true,
					fitColumns: true,
					singleSelect: false,
					rownumbers: true,
					columns : [[
						{
							field : "YLJGMC",
							width: 250,
							align: "center",
							title : "机构名称"
						},
						{
							field : "XZQHMC",
							width: 150,
							align: "center",
							title : "所属区域"
						},
						{
							field : "WSJGLBMC",
							width: 150,
							align: "center",
							title : "机构类型"
						},
						{
							field : "YYDJMC",
							width: 150,
							align: "center",
							title : "医院等级"
						},
						{
							field : "JGFLGLMC",
							width: 150,
							align: "center",
							title : "经营性质"
						}
					]],onLoadSuccess: function(data){
						$("#jgxxLayout").layout("resize");
					}
				};
		}
		return opt;
	}
	
	/**初始化选择机构table*/
	function initJgxx(){
		var ary = [];
		if(qyjgxx){
			ary = qyjgxx;
		}
		var length = 37*(ary.length);
		$("#maxDiv").css("height",length+430+"px");
		$("#maxLayout").layout("resize");
		$("#jgxxBody").css("height", length + 43+"px");
		$("#jgxxTable").datagrid("loadData",{"total": ary.length, "rows": ary});
	}
</script>

<body style="overflow-y: scroll">
<div id="maxDiv" style="height: 430px;">
	<div id="maxLayout" class="easyui-layout" fit="true">
		<div region="north" style="border: none; overflow: hidden;height:245px">
			<h4 class="h4-title" style="font-size: 18px;">
				理事会详情
				<button class="btn topBtn" style="float:right" type="button" onclick="btnBackHandler()">返回</button>
			</h4>
			<div class="form-table-box" >
				<form id="managerForm" class="form-horizontal" action="save">
					<input id="method" name="method" style="display: none;" value="add">
					<table class="form-table">
						<tr>
							<td class="td-text">医联体名称：</td>
							<td class="td-content">
								<span id="YLTMC" class="lshglxx"></span>
							</td>
							<td class="td-text">医联体类型：</td>
							<td class="td-content">
								<span id="YLTLXMC" class="lshglxx"></span>
							</td>
							<td class="td-text">签约有效期：</td>
							<td class="td-content">
								<span id="QYYXQMC" class="lshglxx"></span>
							</td>
							<td class="td-text">主导机构：</td>
							<td class="td-content">
								<span id="ZDYLJGMC" class="lshglxx"></span>
							</td>
						</tr>
						<tr>
							
							<td class="td-text">理事会名称：</td>
							<td class="td-content">
								<span id="LSHMC" class="lshglxx"></span>
							</td>
							<td class="td-text">成立时间</td>
							<td class="td-content">
								<span id="CLSJ" class="lshglxx"></span>
							</td> 
							<td class="td-text">操作人员</td>
							<td class="td-content" colspan="3" style="text-align: center;">
								<span id="CZRYXM" class="lshglxx" style="text-align: center;"></span>
							</td>
						</tr>
						<tr>
							<td class="td-text">理事长：</td>
							<td class="td-content" colspan="7">
								<span id="LSZXM" class="lshglxx"></span>
							</td>
						</tr>
						<tr>
							<td class="td-text">理事：</td>
							<td class="td-content" colspan="7">
								<span id="LSXMS" class="lshglxx"></span>
							</td>
						</tr>
						<tr>
							<td class="td-text">办公室：</td>
							<td class="td-content" colspan="7">
								<span id="BGSDZ" class="lshglxx"></span>
							</td>
						</tr>
					</table>
				</form>
			</div>
		</div>
		<div region="center" style="border: none;overflow: hidden;margin-top:0;">
			<h4 class="h4-title" style="font-size: 13px;">
				机构列表
			</h4>
			<div  id="jgxxBody" style="height:43px;width:96.5%;margin-left:2.5%;">
				<div  id="jgxxLayout" class="easyui-layout" fit="true">
					<div region="center" style="border: none;">
						<table id="jgxxTable" >
									</table>
					</div>
				</div>
			</div>
			<div style="height: 50px;">
				<div class="easyui-layout" fit="true" >
					<div region="center" style="border: none">
						<div class="form-table-box" >
							<table class="form-table">
								<tr>
									<td class="td-text">备注说明：</td>
									<td class="td-content" colspan="5">
										<span id="BZSM" class="lshglxx"></span>
									</td>
								</tr>
							</table>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
</body>
<script type="text/html" id="tableToolBar">
<a class="tableToolBarBtn" href="javascript:remove(#index#)" style="" title="移除" >移除</a>
</script>
</html>


